
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MHIdfa.h"

typedef enum {
    SDK_InitFinish = 0,   
    SDK_PaySuccess,       
    SDK_PayFail,          
    SDK_PayCancel,        
} SDK_EventType;

typedef enum {
    en      = 0,          
    zh_hans = 1,          
    zh_hant = 2,          
} SDK_Language;

typedef enum {
    LoginPlatform_Guest    = 0,      
    LoginPlatform_Facebook = 1,      
    LoginPlatform_Apple    = 7,      
} SDK_LoginPlatform;

typedef enum {
    Share_success = 0,     
    Share_Fail,            
    Share_Cancel,          
} SDK_ShareResult;

typedef void (^ResponseBlock)(BOOL success, MHIdfa *response);
typedef void (^shareBlock)(SDK_ShareResult result, NSString *errMsg);

@protocol SDKDelegate <NSObject>
@optional
- (void)sendBack:(SDK_EventType)eventType CallbackInfo:(id)info;
@end

@interface MHThinkingWrapper : NSObject

#pragma mark - public method

+ (MHThinkingWrapper *)offsetBackDs;



- (void)fosVersion:(id<SDKDelegate>)delegate
          APPID:(NSString *)APPID
         APPKEY:(NSString *)APPKEY;


- (void)labelFontl:(NSString *)url;


- (void)setLanguage:(SDK_Language)language;

#pragma mark --------------------登录（无界面）---------------------


- (void)guestLogin:(ResponseBlock)block;


- (void)willStartShowing0:(ResponseBlock)block;


- (void)lshowWithDuration:(ResponseBlock)block;


- (void)withDictionaryAuto:(ResponseBlock)block;


- (void)constraintsMotion:(ResponseBlock)block;


- (void)dissmLoadHUDr;


- (void)upHeightforRect:(ResponseBlock)block;


- (void)indicatorDuration:(ResponseBlock)block;

#pragma mark --------------------分享---------------------


- (void)deleteItemInSlot6:(NSString *)urlString compationhandle:(shareBlock)handle;


- (void)StringIsNullOrEmptys:(UIImage *)image compationhandle:(shareBlock)handle;


- (void)canMakeInfomentc;


- (void)saveItemc:(NSData *)deviceToken;

#pragma mark --------------------支付---------------------


- (void)gconnectionRequired:(NSString *)productIdentifiers
              actorId:(NSString *)actorId
             serverId:(NSString *)serverId
               userId:(NSString *)userId
               payNum:(NSString *)payNum
            orderItem:(NSString *)orderItem
              orderNO:(NSString *)orderNO
         currencyType:(NSString *)currencyType
            orderSign:(NSString *)orderSign
     developerPayload:(NSString *)developerPayload;

#pragma mark --------------------事件上报---------------------


- (void)thinKEventi:(NSString *)action
                   msg:(NSString *)msg;


- (void)show_PreRequestIdfaPage9:(NSString *)action
        serverID:(NSString *)serverId
         actorId:(NSString *)actorId
       qthinkBindLoginFail:(NSString *)qthinkBindLoginFail
      aesEncrypth:(NSString *)aesEncrypth
            user:(NSString *)user
             msg:(NSString *)msg;

#pragma mark --------------------基础数据---------------------
- (NSString *)terminateBase;
- (NSString *)accountsForService9;
- (NSString *)getCurrentTimesv;
- (NSString *)kvalueWithPopupLayout;
- (NSString *)labelTexti;
- (NSString *)hlabelColor;


- (NSString *)letterServiceGrace;

#pragma mark --------------------无UI参数---------------------
- (NSString *)unregisterGuest;

- (BOOL)lcheckTestCode;

- (BOOL)thinkPayCheckSucv;

- (SDK_LoginPlatform)checkOperate;

- (NSDictionary *)qgetRsid;



#pragma mark - private method
- (void)superview_k:(SDK_EventType)eventType data:(id)data;

@end
